﻿using IQIGame.Onigao.Framework;
using NetProtocol.POD;

namespace IQIGame.Onigao.GamePlay
{
    public class SettingModule : Singleton<SettingModule>
    {
        private SettingModuleData settings;
        private SettingModule() { }

        public void Initialize()
        {
            settings = SettingModuleData.NewFromPool();
            settings.Initialize();
        }


        public void InitModule(PlayerPOD playerPOD)
        {
            GameDataCenter.PlayerData.setting = settings;
        }

        public void ClearModule()
        {
            GameDataCenter.PlayerData.setting = null;
        }

        #region Net层
        #endregion
    }
}
